

	
	var $JplayerID = $('#JplayerID_main').jPlayer({
	    swfPath : 'JplayerSWFURL',
		ready: function ()
		{
		    var pt = parseInt($('#JplayerID .playedTime').val());
		    if (isNaN(pt)) pt=0;		    
		    $('#JplayerID .playedTime').addClass('___ready');
			$(this).setFile('{File}').playHeadTime(pt).play();			
			showPauseBtn('#JplayerID');			
			//demoInstanceInfo($(this), $('#JplayerID .jplayer_info'));									
			
		}
	})			
	.onProgressChange( function(lp,ppr,ppa,pt,tt) {
 		var lpInt = parseInt(lp);
 		var ppaInt = parseInt(ppa);
 		JplayerID_global_lp = lpInt;        
        
		$('#JplayerID .loaderBar').progressbar('option', 'value', lpInt);
 		$('#JplayerID .sliderPlayback').slider('option', 'value', ppaInt);
 		if ($('#JplayerID .playedTime').hasClass('___ready'))
 		    $('#JplayerID .playedTime').val(pt);
	})
	//
	.onSoundComplete( function() {
		$(this).play();
	})	
	;
        
    
	$('#JplayerID .pause').hide();
    initPlayer('#JplayerID');
    
    
